//
//  FriendsSourceListElement.h
//  SolarSeek
//
//  Created by Erick Fejta on 05/06/01.
//  Copyright 2005 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>

#import "SourceListElement.h"

#import "Peers.h"

@class BrowseElement;

@interface FriendsSourceListElement : SourceListArrayElement {
	NSMutableArray *peersFriend;
	unsigned online;
}

- (void)addFriend:(Peer *)peer;
- (void)removeFriend:(Peer *)peer;

- (void)addElement:(SourceListElement *)element;
- (void)removeElement:(SourceListElement *)element;

+ (FriendsSourceListElement *)friendsSourceListElementShared;
+ (BOOL)savePeerInForeground:(Peer *)peer toPath:(NSString *)path;
+ (void)savePeerInForeground:(Peer *)peer;
- (void)savePeer:(Peer *)peer;
- (void)savePeer:(Peer *)peer toPath:(NSString *)path;
+ (void)loadPeerNamed:(NSString *)name;
+ (Peer *)loadPeerAtPath:(NSString *)path;
@end
